\section{proj.cpp}
\begin{linenumbers}
\begin{minilinespace}
\begin{verbatim}
#include<iostream>
#include "RBTree.h"

int main() {
    rbtree  tree;
    int     method;
    int     number;
    while( 1 ) {
        cout << "0: Exit, 1: Insert, 2: Delete, 3: Inorder, 4: Display, 5: Member, 6: Other\n";
        cout << "input type: ";
        cin >> method;

        switch( method ) {
            case 0:
                break;
            case 1:
                cout << "input insert number!: ";
                cin >> number;
                tree.insert( number );
                break;
            case 2:
                cout << "input delete number!: ";
                cin >> number;
                tree.remove( number );
                break;
            case 3:
                cout << "display inorder: \n";
                tree.inorder();
                break;
            case 4:
                cout << "display tree: \n";
                tree.echo();
                break;
            case 5:
                cout << "input search number!: ";
                cin >> number;
                cout << tree.search( number ) << "\n";
                break;
            case 6:
                cout << tree.ToSiblingPath( tree.root->right->left )->key << "\n";
                break;
            default:
                break;
        }
        if( method == 0 ) {
            break;
        }
    }
    return 0;
}
\end{verbatim}
\end{minilinespace}
\end{linenumbers}
